home *** CD-ROM | disk | FTP | other *** search
- { FILTER - Plots FFT results for data from an ASCII file }
- step=1;
- label="Finite Impulse Response Filter Coefficients";
- ylabel="";
- xlabel="";
- file = "firr.dat";
- rawdata = read & scaley(rawdata);
- plot(rawdata);
-
- { Perform FFT on raw data }
-
- fft(rawdata);
- pause; { pause when FFT done }
- label = "FFT Real Part";
- xlabel = "Frequency";
- ylabel = "";
- erase;
- plot(fftre(t));
- pause;
- label = "FFT Imaginary Part";
- erase;
- plot(fftim(t));
- pause;
- label = "FFT Magnitude";
- erase;
- plot(fftmag(t));
- pause;
- label = "FFT Phase";
- {scaley(fftphs(t));}
- ymin=-2; ymax=2;
- erase;
- plot(fftphs(t));
-